﻿namespace SvCore.Common;

public static class CommonExtensions
{
    #region 奖励

    public static PcAward ToAward(this PbAward award)
    {
        return new PcAward()
        {
            Type = award.Type,
            ConfigId = award.ConfigId,
            Count = award.Count,
        };
    }
    public static PbAward ToAward(this PcAward award)
    {
        return new PbAward()
        {
            Type = award.Type,
            ConfigId = award.ConfigId,
            Count = award.Count,
        };
    }

    #endregion
}
